<!--
  Licensed to the Apache Software
	Foundation (ASF) under one or more contributor license agreements. See the
	NOTICE file distributed with this work for additional information regarding
	copyright ownership. The ASF licenses this file to You under the Apache License,
	Version 2.0 (the "License"); you may not use this file except in compliance
	with the License. You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software distributed
	under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
	OR CONDITIONS OF ANY KIND, either express or implied. See the License for
  the specific language governing permissions and limitations under the License.
  -->
<div class="metron-slider-pane-details load-right-to-left dialog1x">
  <div class="container-fluid my-3">
    <div class="row mb-3">
      <div class="col-md-10">
        <div class="form-title"> Save Search</div>
      </div>
      <div class="col-md-2"><i class="fa fa-times pull-right close-button" aria-hidden="true" (click)="goBack()"></i></div>
    </div>
    <form>
      <div class="form-group">
        <label for="name">NAME*</label>
        <input type="text" class="form-control" id="name" [(ngModel)]="saveSearch.name" [ngModelOptions]="{standalone: true}">
      </div>

      <div class="my-4">
        <button type="submit" class="btn btn-all_ports" (click)="trySave()" [disabled]="saveSearch.name.length===0" title="Please specify a name to save the query">SAVE</button>
        <button class="btn btn-mine_shaft_2" (click)="goBack()">CANCEL</button>
      </div>
    </form>
  </div>
</div>
